﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using WeifenLuo.WinFormsUI.Docking;
using Arles.src.controller;
using Arles.src.controller.Commands;

namespace Arles.src.view
{
    public partial class FProperties : DockContent
    {
        
        public PropertyGrid Grid
        {
            get { return this.propertyGrid; }
        }

        public FProperties()
        {
            InitializeComponent();
        }

        private void propertyGrid_PropertyValueChanged(object s, PropertyValueChangedEventArgs e)
        {
            SkydomePropertiesCommand command = new SkydomePropertiesCommand(Editor.Instance, e.ChangedItem, e.OldValue);
            Editor.Instance.Invoker.ExecuteCommand(command);
        }

    }
}
